//
//  LBViewController.m
//  LBButtonExpandHitTest
//
//  Created by liuboliu on 09/19/2021.
//  Copyright (c) 2021 liuboliu. All rights reserved.
//

#import "LBViewController.h"
#import <LBButtonExpandHitTest/UIButton+LBExpandHitTest.h>

@interface LBViewController ()

@end

@implementation LBViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
    
    UIButton *button  = [UIButton buttonWithType:UIButtonTypeCustom];
    button.frame = CGRectMake(100, 100, 100, 100);
    [button addTarget:self action:@selector(click) forControlEvents:UIControlEventTouchUpInside];
    button.expandHitEdgeInsets = UIEdgeInsetsMake(20, 20, 20, 20);
    [self.view addSubview:button];
    button.backgroundColor = [UIColor cyanColor];
	// Do any additional setup after loading the view, typically from a nib.
}

- (void)click
{
    NSLog(@"点击点击");
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
